package data;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;

public class DataTest2 {
    public static void main(String[] args) {
        try (
                DataInputStream dis =
                        new DataInputStream(new FileInputStream("C:\\Users\\zjd\\IdeaProjects\\java\\src\\itheima.10.txt"));
        ){

            String rs = dis.readUTF();
            System.out.println(rs);

            int i = dis.readInt();
            System.out.println(i);

            boolean b = dis.readBoolean();
            System.out.println(b);

            double d = dis.readDouble();
            System.out.println(d);

            int t = dis.readInt();
            System.out.println(t);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
